﻿$(document).on("pageInit", "#cource-score-list4stu", function (e, id, page) {
    loadList();

    function loadList() {
        $(page).find("#list").empty();
        $.getJSON("/courcescore/GetScoreList4Stu", {}, function (response) {
            $.each(response, function (index, item) {
                var frame = $('<li>\
                    <div class="item-content">\
                        <div class="item-inner">\
                            <div class="item-title-row">\
                                <div class="item-title">课程：' + (item.CourceName || '') + '</div>\
                                <div class="item-after">得分：' + item.Score + '</div>\
                            </div>\
                            <div class="item-subtitle">评分人：' + (item.CreateRealName || '') + '</div>\
                            <div class="item-subtitle">创建时间：' + item.CreateTime + '</div>\
                            <div class="item-text">备注：' + (item.Remark || '') + '</div>\
                        </div>\
                    </div>\
                </li>');
                $(page).find("#list").append(frame);
            });
        });
    }
});